import math

print("""
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
                                          史上超级无敌计算器，没有比它更史！
                                              王者荣耀癫疯召唤师出品
                                                不能模仿只能超越
                                                   适用年龄18+
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
""")

def Csum(num1,num2):
    return num1 + num2
def Csub(num1,num2):
    return num1 - num2
def Cmulti(num1,num2):
    return num1 * num2
def Cdiv(num1,num2):
    return num1 / num2
def Cmod(num1,num2):
    return num1 % num2
def Clog(num1,num2):
    return math.log(num2,num1)
def Cpow(num1,num2):
    return num1 ** num2
conti = "Y"
while conti == "Y":
    num1 = int(input("请输入一个数"))
    choice = input("请输入运算符(+,-,*,/,%,log，**):")
    num2 = int(input("请输入另外一个数"))

    if choice == "+":
        print(num1,choice,num2,"=",Csum(num1,num2),"\n")
    elif choice == "-":
        print(num1,choice,num2,"=",Csub(num1, num2),"\n")
    elif choice == "*":
        print(num1,choice,num2,"=",Cmulti(num1,num2),"\n")
    elif choice == "/":
        if (num2 == 0):
            print("除数不能为零！")
            continue
        print(num1,choice,num2,"=",Cdiv(num1,num2),"\n")
    elif choice == "%":
        print(num1,choice,num2,"=",Cmod(num1,num2),"\n")
    elif choice == "log":
        if num2 <= 0 :
            print("真数要大于零！\n")
            continue
        print(choice,num1,num2,"=",Clog(num1,num2),"\n")
    elif choice == "**":
        print(num1,choice,num2,"=",Cpow(num1,num2),"\n")

    conti = input("是否继续？(Y/N):\n")
